package com.jj.fly.utils;

import java.io.File;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * 日志工具类
 * 
 * @author JJ
 *
 */
public class LogUtils {

	static {
		String root = PathUtils.getRoot();
		String logFilesPath = root + "WEB-INF" + File.separator + "logs";
		System.setProperty("logFilesPath", logFilesPath);
	}

	/**
	 * 默认日志
	 */
	public static Log getFrameworkLoger() {
		return LogFactory.getLog("com.jj.fly");
	}

	public static Log getLoger(String loggerName) {
		return LogFactory.getLog(loggerName);
	}

}
